import {
  createRouter,
  createWebHashHistory,
  RouteRecordRaw
} from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home/index.vue')
  },
  {
    path: '/video',
    name: 'video',
    component: () => import('@/views/video/index.vue')
  },
  {
    path: '/audio',
    name: 'audio',
    component: () => import('@/views/audio/index.vue')
  },
  {
    path: '/pull',
    name: 'pull',
    component: () => import('@/views/pull/index.vue')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('@/views/about.vue')
  },
  {
    path: '/water',
    name: 'water',
    component: () => import('@/views/water/index.vue')
  },
  {
    path: '/moonCloud',
    name: 'moonCloud',
    component: () => import('@/views/moonCloud.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router